//
//  StyleBoxButtonView.m
//  DPGJ
//
//  Created by ZhuoLaiQiang@Gmail.com on 11-11-17.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import "StyleBoxButtonView.h"
#import "StyleBoxButton.h"

@implementation StyleBoxButtonView
@synthesize button;
@synthesize label;

+ (StyleBoxButtonView *)getStyleBoxButtonViewWithClassName:(NSString *)className_
{
    NSArray *nibArray = [[NSBundle mainBundle] loadNibNamed: @"StyleBoxButtonView" owner: nil options: nil];
    StyleBoxButtonView *styleBoxButtonView = [nibArray objectAtIndex: 0];
    styleBoxButtonView.button.className = className_;
    
    return styleBoxButtonView;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

- (void)dealloc
{
    LF_RELEASE_SAFELY(button);
    LF_RELEASE_SAFELY(label);
    
    [super dealloc];
}
@end
